﻿<?xml version="1.0" encoding="utf-8"?>                                         
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 
<xsl:decimal-format name='H' grouping-separator='-' />
<xsl:decimal-format name='S' grouping-separator='/' />
<xsl:decimal-format name='C' grouping-separator=',' />
<xsl:template match="/">                                       
<html version="Version 1.0.0.1 ( build : 800902_001 )">
<HEAD>

<META content="text/html; charset=utf-8" http-equiv="Content-Type"></META><LINK rel="stylesheet" type="text/css" href="/resource/css/style.css"></LINK></HEAD>    
<BODY leftmargin='10'  class="ErrorBody" onload="fnInit();" draggable="true">
    <xsl:apply-templates/>                                       
    </BODY>
  </html>                                                        
</xsl:template>                                                  
                                                                 
<xsl:template match="MXMESSAGE">                               
    <xsl:apply-templates select="Error"/>          
</xsl:template>                                                  
<xsl:template match="Error">                       

<script language="javascript" name="icommon" mxtype="wscript" src="/resource/script/icommon.js">
</script><!-->mxtype@wscript<--><script language="JavaScript" name="wscript1" mxtype="wscript" capx="9" capy="114" tn="633892214734953837">
<xsl:text disable-output-escaping="yes">
<![CDATA[
var detailViewCheck = true;
var isDiv = false;			//div로 에러페이지가 동작했는지 여부
function fnInit()
{
	var targetGubun = errorform.txtCOMMON_TARGET_GUBUN.value;
	if ( targetGubun == "#" )
	{
		if ( window.parent != null )
		{
			if ( parent.error.hasDiv != null )
			{
				isDiv = true;
				errorform.btnClose.style.display = "";
				tblError.className = "";
				parent.error.doOpenExecute();
			}
		}
		ievent.setEvent();
	}else if ( targetGubun == "download" ){
		var resultObject = new Object();
		
		resultObject.RESULT_CODE       = errorform.txtCOMMON_RESULT_CODE.value;
		resultObject.MENU_INFO         = errorform.txtCOMMON_MENU_INFO.value;
		resultObject.OP_INFO           = errorform.txtCOMMON_OP_INFO.value;
		resultObject.RESULT_MSG        = errorform.teaCOMMON_RESULT_MESSAGE.value;
		resultObject.CHARGE_PERSON 	   = errorform.txtCOMMON_CHARGE_PERSON.value;
		resultObject.ERROR_CLASS_NAME  = errorform.txtCOMMON_ERROR_CLASS_NAME.value;
		resultObject.ERROR_LINE_NUMBER = errorform.txtCOMMON_ERROR_LINE_NUMBER.value;
		resultObject.RESULT_CODE 	   = "";
		
		parent.error.doOpen(resultObject);
	}else{
		fnChangeImage();
	}
//	displayDetail("none");
	//errorform.btnClose.style.display = "none";
	
}
//function fnCheckDiv()
//{
//	if ( errorform.txtCOMMON_DIV.value == 'Y' ){
//		isDiv = true;
//		errorform.btnClose.style.display = "";
//		tblError.className = "";
//	}
//}
function fnChangeImage()
{
	
	if ( errorform.txtCOMMON_RESULT_CODE.value == iconst.FAILURE_UCODE )
	{
		//사용자 오류코드
		errorform.system_error_img.style.display = "none";
		errorform.help_error_img.style.display = "";
	}else{
		//그 외의 오류코드
		errorform.system_error_img.style.display = "";
		errorform.help_error_img.style.display = "none";
	}
}
function fnClose()
{
	if ( isDiv ){
		if ( parent != null ){
			if ( detailViewCheck == false )
				errorform.btnDetail.onclick();
			parent.error.close();
		}
	}else{
		if (/MSIE/.test(navigator.userAgent)) {
			//팝업으로 오픈할 경우
			if ( parent != null )
			{
				if ( parent.g_opener != null )
				{
					parent.fnClose();
					return;
				}
			}
			//일반적인 화면일 경우
			if(navigator.appVersion.indexOf("MSIE 7.0")>=0 
				|| navigator.appVersion.indexOf("MSIE 8.0")>=0) 
			{
				window.open('about:blank','_self').close();
			} else {
				window.opener = self; 
				self.close(); 
			}                    
		} 
	}
}
function fnMouseDown(e)
{
	if ( isDiv ) 
	{
		var source = window.event.srcElement;
		if( source.tagName=="TEXTAREA" || source.tagName=="INPUT" ) return;
		parent.document.all('___error_div').fireEvent("onmousedown", e);
	}
}
function fnMouseUp(e)
{
	if ( isDiv ) 
	{
		var source = window.event.srcElement;
		if( source.tagName=="TEXTAREA" || source.tagName=="INPUT" ) return;
		parent.document.all('___error_div').fireEvent("onmouseup", e);
	}
}
function fnMouseMove(e)
{
	if ( isDiv ) 
	{
		var source = window.event.srcElement;
		if( source.tagName=="TEXTAREA" || source.tagName=="INPUT" ) return;
		parent.document.all('___error_div').fireEvent("onmousemove", e);
	}
}

//function fnDetail(obj)
//{
//	if ( detailViewCheck == true )
//	{
//		displayDetail("");
//		obj.innerText = "<<자세히";
//		detailViewCheck = false;
//		if ( isDiv ){
//			if ( parent != null )
//				parent.error.resize(560,500);
//		}else{
//		}
//	}else{
//		displayDetail("none");
//		obj.innerText = "자세히>>";
//		detailViewCheck = true;
//		
//		if ( isDiv ){
//			if ( parent != null )
//				parent.error.resize(560,280);
//		}else{
//		}
//	}
//}
//function displayDetail(visible)
//{
//	var detail_trs = document.all.detail_tr;
//	for(var index=0;index<detail_trs.length;index++)
//	{
//		detail_trs[index].style.display = visible;
//	}
//
//document.attachEvent('onmousedown',fnMouseDown);
//document.attachEvent('onmouseup',fnMouseUp);
//document.attachEvent('onmousemove',fnMouseMove);
document.onmousedown = fnMouseDown;
document.onmouseup = fnMouseUp;
document.onmousemove = fnMouseMove;
]]>
</xsl:text>
</script><!-->mxtype@wscript<--><form name="errorform" mxtype="begin_form" method="post"><INPUT style="WIDTH: 57px; HEIGHT: 21px" xmltemp_value="[TARGET_GUBUN]" size="8" type="hidden" name="txtCOMMON_TARGET_GUBUN" stylett="1900000021000000789C0BF77409F1B05230352FA8B056F070F574F708B15230322CA8000058C206E8">
<xsl:attribute name="value"><xsl:value-of select="TARGET_GUBUN"/></xsl:attribute>
</INPUT><INPUT style="WIDTH: 69px; HEIGHT: 21px" xmltemp_value="[RESULT_CODE]" size="10" type="hidden" name="txtCOMMON_RESULT_CODE" stylett="1900000021000000789C0BF77409F1B05230B32CA8B056F070F574F708B15230322CA8000058F606EB">
<xsl:attribute name="value"><xsl:value-of select="RESULT_CODE"/></xsl:attribute>
</INPUT>

<TABLE id="tblError" class="ErrorTblMrgn" border="0" cellspacing="0" cellpadding="0" width="630" name="tblError">

<TBODY>

<TR>

<TD><IMG id="system_error_img" border="0" name="system_error_img" hspace="0" src="/resource/images/systeminfo_t.gif" script="/resource/images/systeminfo_t.gif"></IMG><IMG id="help_error_img" border="0" name="help_error_img" hspace="0" src="/resource/images/helpmessage_t.gif" script="/resource/images/helpmessage_t.gif"></IMG>

</TD>

</TR>

<TR>

<TD class="ErrorBoxCtr">

<TABLE border="0" cellspacing="0" cellpadding="0" width="100%">

<TBODY>

<TR>

<TD class="ErrorLine" colspan="2"></TD>

</TR>

<TR>

<TD class="ErrorLbl" width="19%"><IMG class="ErrorBall" align="absMiddle" src="/resource/images/error_ball.gif" script="/resource/images/error_ball.gif"></IMG>서비스명</TD>

<TD class="ErrorTdComn" width="81%"><INPUT style="WIDTH: 370px" class="edt_NolineLft" xmltemp_value="[MENU_INFO]" readonly="true" name="txtCOMMON_MENU_INFO" stylett="0C00000014000000789C0BF77409F1B05230363728A800001538035D">
<xsl:attribute name="value"><xsl:value-of select="MENU_INFO"/></xsl:attribute>
</INPUT> - <INPUT style="WIDTH: 80px" class="edt_NolineLft" xmltemp_value="[OP_INFO]" readonly="true" name="txtCOMMON_OP_INFO" stylett="0B00000013000000789C0BF77409F1B052B03028A800001262032B">
<xsl:attribute name="value"><xsl:value-of select="OP_INFO"/></xsl:attribute>
</INPUT></TD>

</TR>

<TR>

<TD class="ErrorLine" colspan="2"></TD>

</TR>

<TR>

<TD class="ErrorLbl"><IMG class="ErrorBall" align="absMiddle" src="/resource/images/error_ball.gif" script="/resource/images/error_ball.gif"></IMG>에러메세지</TD>

<TD class="ErrorTdComn"><TEXTAREA style="WIDTH: 460px;" class="txa_Comn" rows="5" readonly="true" name="teaCOMMON_RESULT_MESSAGE" stylett="0D00000015000000789C0BF77409F1B05230313328A8B0060018D10398" xml="true" xmllink="RESULT_MESSAGE">
<xsl:value-of select="RESULT_MESSAGE"/></TEXTAREA></TD>

</TR>

<TR>

<TD class="ErrorLine" colspan="2"></TD>

</TR>

<TR>

<TD class="ErrorLbl"><IMG class="ErrorBall" align="absMiddle" src="/resource/images/error_ball.gif" script="/resource/images/error_ball.gif"></IMG>담당자</TD>

<TD class="ErrorTdComn"><INPUT style="WIDTH: 100%" class="edt_NolineLft" xmltemp_value="[CHARGE_PERSON]" readonly="true" name="txtCOMMON_CHARGE_PERSON" stylett="0B00000013000000789C0BF77409F1B05230343050050011730291">
<xsl:attribute name="value"><xsl:value-of select="CHARGE_PERSON"/></xsl:attribute>
</INPUT></TD>

</TR>

<TR>

<TD class="ErrorLine" colspan="2"></TD>

</TR>

<TR>

<TD class="ErrorLbl"><IMG class="ErrorBall" align="absMiddle" src="/resource/images/error_ball.gif" script="/resource/images/error_ball.gif"></IMG>에러프로그램명</TD>

<TD style="PADDING-BOTTOM: 5px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 5px" stylett="4C00000034000000789C0B707471F1F473D775F20F09F1F7B552302DA8B05608800AFAB8BA85582918200B0579BA7BA08B85F80780350200209314E5"><INPUT style="WIDTH: 85%; HEIGHT: 19px" class="edt_NolineLft" xmltemp_value="[ERROR_CLASS_NAME]" readonly="true" size="13" name="txtCOMMON_ERROR_CLASS_NAME" stylett="1800000020000000789C0BF77409F1B052B03055B556F070F574F708B15230B42CA800004AC5062D">
<xsl:attribute name="value"><xsl:value-of select="ERROR_CLASS_NAME"/></xsl:attribute>
</INPUT>&#xa0;- <INPUT style="WIDTH: 12%; HEIGHT: 19px" class="edt_NolineLft" xmltemp_value="[ERROR_LINE_NUMBER]" readonly="true" size="3" name="txtCOMMON_ERROR_LINE_NUMBER" stylett="180000001E000000789C0BF77409F1B052303452B556F070F574F70801722C0B2A004A1E0623">
<xsl:attribute name="value"><xsl:value-of select="ERROR_LINE_NUMBER"/></xsl:attribute>
</INPUT></TD>

</TR>

<TR>

<TD class="ErrorLine" colspan="2"></TD>

</TR>

</TBODY></TABLE>

<TABLE style="MARGIN: 2px 0px 0px" border="0" cellspacing="0" cellpadding="0" width="100%" stylett="1300000016000000789CF3750C72F7F4B352302AA8503080600035A905A3">

<TBODY>

<TR>

<TD class="tblBtn"><BUTTON style="DISPLAY: none" class="btn02" onfocus="this.blur()" onclick="fnClose();" name="btnClose" stylett="0D00000015000000789C73F10C0EF0718CB452C8CBCF4B05001B030421">
닫기</BUTTON></TD>

</TR>

</TBODY></TABLE></TD>

</TR>

<TR>

<TD><IMG src="/resource/images/error_b.gif" script="/resource/images/error_b.gif"></IMG>

</TD>

</TR>

</TBODY></TABLE></form>  
</xsl:template>										  
</xsl:stylesheet>									  
